projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ee3aba
)
(read-quoted-char): Convert function keys like Return
author
Richard M. Stallman
<rms@gnu.org>
Thu, 24 Jul 1997 17:01:46 +0000
(17:01 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Thu, 24 Jul 1997 17:01:46 +0000
(17:01 +0000)
into ASCII equivalents.
lisp/subr.el
patch
|
blob
|
history
diff --git
a/lisp/subr.el
b/lisp/subr.el
index 0fa6193bd33b97ad807b68f23cbcafbbaa7dd44d..14ae2ba3e8509cbe68f140b7006d66380656377e 100644
(file)
--- a/
lisp/subr.el
+++ b/
lisp/subr.el
@@
-690,6
+690,11
@@
any other non-digit terminates the character code and is then used as input."))
(and prompt (message "%s-" prompt))
(setq char (read-event))
(if inhibit-quit (setq quit-flag nil)))
+ ;; Translate TAB key into control-I ASCII character, and so on.
+ (and char
+ (let ((translated (lookup-key function-key-map (vector char))))
+ (if translated
+ (setq char (aref translated 0)))))
(cond ((null char))
((not (integerp char))
(setq unread-command-events (list char)